import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';

export default async function a002(fd: IFeidaoAiBrowserComponent) {
	// 关闭
	fd.data.node.querySelector<HTMLInputElement>('[data-feidao-name="name"]').value = '';
	fd.data.node.querySelector<HTMLInputElement>('[data-feidao-name="user"]').value = '';
	fd.data.node.querySelector<HTMLInputElement>('[data-feidao-name="phone"]').value = '';
	fd.data.node.querySelector<HTMLInputElement>('[data-feidao-name="email"]').value = '';
	const node = fd.data.node.querySelector<HTMLDivElement>('[data-feidao-name="zj2"]');
	node.classList.add('display-n');
	fire('zj-000001', 'ec-001');
}
